import os, sys, urllib

url = "http://www.baidu.com/img/baidu_sylogo1.gif"
wp = urllib.urlopen(url)
content = wp.read()
path   =   "d:\\Py\\logo.gif" 
if os.path.exists(path):
	pass
else:
	fp = open(path,"wb")
	fp.close()

fp = open(path,"wb")
fp.write(content)
fp.close()


